import request from '@/utils/request'



export function measureList(data) { //计量器具管理-列表
  return request({
    url: '/project-quality/api/standingBooMeteringEquipment/page',
    method: 'post',
    data
  })
}


export function measureAdd(data) { //计量器具管理-新增
  return request({
    url: '/project-quality/api/standingBooMeteringEquipment/add',
    method: 'post',
    data
  })
}

//原 put
export function measureEdit(data) { //计量器具管理-编辑
  return request({
    url: '/project-quality/api/standingBooMeteringEquipment/edit',
    method: 'post',
    data
  })
}

//原 del
export function measureDelete(id) { //计量器具管理-删除
  return request({
    url: '/project-quality/api/standingBooMeteringEquipment/del/' + id,
    method: 'get',
  })
}


export function measureDetails(id) { //计量器具管理-详情
  return request({
    url: '/project-quality/api/standingBooMeteringEquipment/' + id,
    method: 'get',
  })
}
export function  measureExport(data) { //计量器具管理-导出
  return request({
      url: '/project-quality/api/standingBooMeteringEquipment/export',
      responseType: 'arraybuffer',
      method: 'POST',
      data,
  })
}